<template>
  <div>{{ cout }}</div>
  <el-button type="primary" size="default" @click="coutsjia"> 点击 </el-button>
</template>

<script lang="ts">
import { defineComponent } from 'vue';

export default defineComponent({
  data() {
    return {
      // cout: this.$store.state.count,
      cout: 1,
    };
  },
  mounted() {},
  methods: {
    coutsjia(val: any, val1: any) {
      // this.$store.commit('setCount', this.cout++);
      // console.log(this.$store.state.count);
    },
  },
});
</script>
<style scoped></style>
